{% extends "base.html" %}

{% block extracss %}
<style>
.plenty_table { 
	border-width:3px; border-style:solid; border-color:gray; background-color:#fff5ee;border-collapse:collapse;
}
.plenty_table th {
	border-width:1px; border-style:dotted;padding:15px 3px 3px 3px;background-color:white;
}
.plenty_table td {
	border-width:1px; border-style:dotted;padding:5px;
}
.paid {
	background-color:#ccccff;
}
</style>
{% endblock %}

{% block content %}
<h2>测试支付宝</h2>
<table class="plenty_table">
<tr>
<th>年份</th>
<th>测试1</th>
<th>测试2</th>
<th>测试3</th>
<th>支付宝付款</th>
</tr>
	<tr>
	<form action="/alipay/" method="post">{% csrf_token %}
	<td>2009</td>
	<input type="hidden" name="subject" value="支付宝Django集成测试"/>
	<input type="hidden" name="body" value="支付宝Django集成测试，支付宝的文档概念和编排很混乱啊~"/>
	<input type="hidden" name="out_trade_no" value="{{out_trade_no}}"/>
	<input type="hidden" name="notify_url" value="http://{{domain}}/alipay/test/done/"/>
	<input type="hidden" name="payment_type" value="2"/>
	<td><label><input type="radio" name="price" value="0.01" checked/>0.01元</label></td>
	<td><label><input type="radio" name="price" value="0.02"/>0.02元</label></td>
	<td><label><input type="radio" name="price"  value="180.00"/>180元</label></td>
	<td><input type="submit" value="测试"/></td>
	</form>
	</tr>
</table>
{% endblock %}
